<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/bizappproject/cailiao_plan_data/subcontracting_plan.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/bizappproject/cailiao_plan_data/subcontracting_plan.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "subcontracting_plan",
        setup() {
            const table = ref({
                key: "Id",
                editTable:true ,
                footer: "Foots",
                cnName: "受托加工计划",
                name: "cailiao_plan_data/subcontracting_plan",
                newTabEdit: false,
                url: "/subcontracting_plan/",
                sortName: "Id"
            });
            const editFormFields = ref({"FachuTime":"","LLDanWei":"","Jieshou":"","OrderPlan":"","product":"","Lot":"","TlLot":"","XNeng":"","DuCeng":"","ProductGre":"","ProgPartner":"","PlanDate":"","ReqDate":"","Qty":"","PerWeight":"","SendQty":"","Unit":"","OrderWT":"","Statues":"","IsJB":"","AcptTimeSD":"","PredictDeliveryTime":"","ElecOutputPlan":"","MateIssTime":"","Remarks":""});
            const editFormOptions = ref([[{"title":"发出时间","field":"FachuTime"},
                               {"title":"发出工厂","field":"LLDanWei"},
                               {"title":"接收工厂","field":"Jieshou"}],
                              [{"title":"生产计划单","field":"OrderPlan"},
                               {"title":"产品","field":"product"}],
                              [{"title":"单号","field":"Lot"},
                               {"title":"投料批次","field":"TlLot"}],
                              [{"title":"性能","field":"XNeng"},
                               {"title":"镀层","field":"DuCeng"}],
                              [{"title":"产品规格","field":"ProductGre"},
                               {"title":"产品工程师","field":"ProgPartner"}],
                              [{"title":"计划交期","field":"PlanDate"},
                               {"title":"要求交期","field":"ReqDate"}],
                              [{"title":"数量","field":"Qty"},
                               {"title":"产品单重","field":"PerWeight"}],
                              [{"title":"发料重量","field":"SendQty"},
                               {"title":"单位","field":"Unit"}],
                              [{"title":"委托任务","field":"OrderWT"},
                               {"title":"状态","field":"Statues"}],
                              [{"title":"是否检包","field":"IsJB"},
                               {"title":"物料接收时间","field":"AcptTimeSD"}],
                              [{"title":"预测发货时间","field":"PredictDeliveryTime"},
                               {"title":"电镀产出计划","field":"ElecOutputPlan"}],
                              [{"title":"物料实际发出时间","field":"MateIssTime"}],
                              [{"title":"备注","field":"Remarks","colSize":12,"type":"textarea"}]]);
            const searchFormFields = ref({"product":"","PlanDate":"","ReqDate":"","Qty":"","AcptTimeSD":"","PredictDeliveryTime":"","ElecOutputPlan":"","MateIssTime":""});
            const searchFormOptions = ref([[{"title":"产品","field":"product"},{"title":"计划交期","field":"PlanDate"},{"title":"要求交期","field":"ReqDate"}],[{"title":"数量","field":"Qty"},{"title":"物料接收时间","field":"AcptTimeSD"},{"title":"预测发货时间","field":"PredictDeliveryTime"}],[{"title":"电镀产出计划","field":"ElecOutputPlan"},{"title":"物料实际发出时间","field":"MateIssTime"}]]);
            const columns = ref([{field:"FachuTime",title:"发出时间",type:"string",width:150,fixed:true,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"LLDanWei",title:"发出工厂",type:"string",width:120,fixed:true,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Jieshou",title:"接收工厂",type:"string",width:120,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"OrderPlan",title:"生产计划单",type:"string",width:120,fixed:true,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"product",title:"产品",type:"string",width:120,fixed:true,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Lot",title:"单号",type:"string",width:100,fixed:true,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"TlLot",title:"投料批次",type:"string",width:100,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"XNeng",title:"性能",type:"string",width:50,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"DuCeng",title:"镀层",type:"string",width:70,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"ProductGre",title:"产品规格",type:"string",width:150,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"ProgPartner",title:"产品工程师",type:"string",width:80,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"PlanDate",title:"计划交期",type:"string",width:150,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"ReqDate",title:"要求交期",type:"string",width:100,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Qty",title:"数量",type:"string",width:100,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"PerWeight",title:"产品单重",type:"string",width:100,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"SendQty",title:"发料重量",type:"string",width:100,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Unit",title:"单位",type:"string",width:100,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"OrderWT",title:"委托任务",type:"string",width:100,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Statues",title:"状态",type:"string",width:100,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"IsJB",title:"是否检包",type:"string",width:100,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"AcptTimeSD",title:"物料接收时间",type:"string",width:100,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"PredictDeliveryTime",title:"预测发货时间",type:"string",width:100,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"ElecOutputPlan",title:"电镀产出计划",type:"string",width:100,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"MateIssTime",title:"物料实际发出时间",type:"string",width:130,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Remarks",title:"备注",type:"string",width:110,edit:{type:"textarea"},showOverflowTooltip:true,align:"left"},
                       {field:"update_data",title:"更新时间",type:"datetime",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"Id",title:"键",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"是否有效(0:否,1:是)",type:"int",width:110,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateId",title:"创建人ID",type:"bigint",width:80,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人名",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改人ID",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人名",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
